package com.prs.crm.service.sys;

import java.util.List;

import org.courser.service.ServiceSupport;
import org.courser.ui.PaginationSupport;

import com.prs.crm.domain.hr.Person;
import com.prs.crm.domain.sys.Log;
import com.prs.crm.domain.sys.LogItem;
import com.prs.crm.domain.sys.Module;

/**
 * 日志记录
 * @author prs.chenzhi
 *
 */
public interface LogService extends ServiceSupport<Log>{

	/**
	 * 保存日志
	 * @param person
	 * @param module
	 */
	void saveLog(Person person ,Module module);
	
	/**
	 * 批量删除
	 * @param ids
	 * @return
	 */
	int batchRemove(java.io.Serializable[] ids);
	
	/**
	 * 保存日志记录详细
	 * @param item
	 */
	void saveLogItem(LogItem item);
	
	
	/**
	 * 分页显示日志
	 * @param page
	 * @param logid
	 * @return
	 */
	PaginationSupport pageListLogItem(PaginationSupport page,Integer logid);
	boolean getSearchName(Class class1,String name);
	boolean getSearchName1(Class class1,String type,String name);
	
	Integer delLog();
	
	  List<Log>  ByPersons(Person per);
}
